<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <meta charset="utf-8"/>
    <title>    TFC-Trotri Foundation Classes &raquo; \tfc\mvc\UrlManager
</title>
    <meta name="author" content=""/>
    <meta name="description" content=""/>

            <link href="../css/template.css" rel="stylesheet" media="all"/>
    
            <!--[if lt IE 9]>
        
        <![endif]-->
        <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
        <script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
        <script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script>
        <script src="../js/bootstrap.js" type="text/javascript"></script>
        <script src="../js/template.js" type="text/javascript"></script>
        <script src="../js/prettify/prettify.min.js" type="text/javascript"></script>
    
            <link rel="shortcut icon" href="../img/favicon.ico"/>
        <link rel="apple-touch-icon" href="../img/apple-touch-icon.png"/>
        <link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png"/>
        <link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png"/>
    </head>
<body>

        <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span> <span class="icon-bar"></span>
                    <span class="icon-bar"></span> </a>
                <a class="brand" href="http://www.trotri.com/">Trotri官网</a><a class="brand" href="../index.html">TFC-Trotri Foundation Classes</a>

                <div class="nav-collapse">
                    <ul class="nav">
                        <li class="dropdown">
                            <a href="#api" class="dropdown-toggle" data-toggle="dropdown">
                                API Documentation <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                                                    <li><a>Namespaces</a></li>
                                                                        <li><a href="../namespaces/tfc.html">tfc</a></li>
                                                                                                                                </ul>
                        </li>
                        <li class="dropdown" id="charts-menu">
                            <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
                                Charts <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="../graph_class.html">
                                        <i class="icon-list-alt"></i>&#160;Class hierarchy diagram
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown" id="reports-menu">
                            <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
                                Reports <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="../errors.html">
                                         
                                    </a>
                                </li>
                                <li>
                                    <a href="../markers.html">
                                        <i class="icon-list-alt"></i>&#160;Markers
                                    </a>
                                </li>
                                <li>
                                    <a href="../deprecated.html">
                                        <i class="icon-list-alt"></i>&#160;Deprecated
                                    </a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="go_to_top">
            <a href="#___" style="color: inherit">Back to top&#160;&#160;<i class="icon-upload icon-white"></i></a>
        </div>
    </div>
    
    <div id="___" class="container">
        <noscript>
            <div class="alert alert-warning">
                Javascript is disabled; several features are only available if Javascript is enabled.
            </div>
        </noscript>

        
            <style>
        .deprecated h2 {
            text-decoration: line-through;
        }
    </style>
    <div class="row">
        <div class="span4">
                    <div class="btn-group view pull-right" data-toggle="buttons-radio">
        <button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button>
        <button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
    </div>
    <div class="btn-group visibility" data-toggle="buttons-checkbox">
        <button class="btn public active" title="Show public elements">Public</button>
        <button class="btn protected" title="Show protected elements">Protected</button>
        <button class="btn private" title="Show private elements">Private</button>
        <button class="btn inherited active" title="Show inherited elements">Inherited</button>
    </div>

        <ul class="side-nav nav nav-list">
        <li class="nav-header">
            <i class="icon-custom icon-method"></i> Methods
            <ul>
                                                                                                    <li class="method public">
        <a href="#method_getUrl" title="getUrl :: 通过路由类型，获取URL
如果指定了Action，但没指定Controller，则Controller默认为当前Controller
如果指定了Controller，但没指定Module，则Module默认为当前Module">
            <span class="description">通过路由类型，获取URL
如果指定了Action，但没指定Controller，则Controller默认为当前Controller
如果指定了Controller，但没指定Module，则Module默认为当前Module</span><pre>getUrl</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getScriptUrl" title="getScriptUrl :: 获取当前脚本的路径">
            <span class="description">获取当前脚本的路径</span><pre>getScriptUrl</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getRequestUri" title="getRequestUri :: 获取要访问的页面名">
            <span class="description">获取要访问的页面名</span><pre>getRequestUri</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_applyQueryString" title="applyQueryString :: 通过路由类型，在URL后拼接该路由的QueryString参数">
            <span class="description">通过路由类型，在URL后拼接该路由的QueryString参数</span><pre>applyQueryString</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_applyRewriteQuery" title="applyRewriteQuery :: 在URL后拼接Rewrite路由的QueryString，QueryString：/module/controller/action/k1/v1/k2/v2/k3/v3">
            <span class="description">在URL后拼接Rewrite路由的QueryString，QueryString：/module/controller/action/k1/v1/k2/v2/k3/v3</span><pre>applyRewriteQuery</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_applySimpleQuery" title="applySimpleQuery :: 在URL后拼接Simple路由的QueryString，QueryString：?m=module&amp;c=controller&amp;a=action&amp;k1=v1&amp;k2=v2&amp;k3=v3">
            <span class="description">在URL后拼接Simple路由的QueryString，QueryString：?m=module&amp;c=controller&amp;a=action&amp;k1=v1&amp;k2=v2&amp;k3=v3</span><pre>applySimpleQuery</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_applySupervarQuery" title="applySupervarQuery :: 在URL后拼接Supervar路由的QueryString，QueryString：?r=module/controller/action&amp;k1=v1&amp;k2=v2&amp;k3=v3">
            <span class="description">在URL后拼接Supervar路由的QueryString，QueryString：?r=module/controller/action&amp;k1=v1&amp;k2=v2&amp;k3=v3</span><pre>applySupervarQuery</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_applyParams" title="applyParams :: 通过路由类型，在URL后拼接QueryString参数">
            <span class="description">通过路由类型，在URL后拼接QueryString参数</span><pre>applyParams</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_applyRewriteParams" title="applyRewriteParams :: 在URL后拼接QueryString参数，QueryString：/k1/v1/k2/v2/k3/v3">
            <span class="description">在URL后拼接QueryString参数，QueryString：/k1/v1/k2/v2/k3/v3</span><pre>applyRewriteParams</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_applySupervarParams" title="applySupervarParams :: 在URL后拼接QueryString参数，QueryString：&amp;k1=v1&amp;k2=v2&amp;k3=v3">
            <span class="description">在URL后拼接QueryString参数，QueryString：&amp;k1=v1&amp;k2=v2&amp;k3=v3</span><pre>applySupervarParams</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_applySimpleParams" title="applySimpleParams :: 在URL后拼接QueryString参数，QueryString：&amp;k1=v1&amp;k2=v2&amp;k3=v3">
            <span class="description">在URL后拼接QueryString参数，QueryString：&amp;k1=v1&amp;k2=v2&amp;k3=v3</span><pre>applySimpleParams</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getCleanRoutes" title="getCleanRoutes :: 处理路由参数
如果指定了Action，但没指定Controller，则Controller默认为当前Controller
如果指定了Controller，但没指定Module，则Module默认为当前Module">
            <span class="description">处理路由参数
如果指定了Action，但没指定Controller，则Controller默认为当前Controller
如果指定了Controller，但没指定Module，则Module默认为当前Module</span><pre>getCleanRoutes</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getRouteType" title="getRouteType :: 获取路由方式">
            <span class="description">获取路由方式</span><pre>getRouteType</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setRouteType" title="setRouteType :: 设置路由方式">
            <span class="description">设置路由方式</span><pre>setRouteType</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_isSupervar" title="isSupervar :: 判断路由方式是否是Supervar">
            <span class="description">判断路由方式是否是Supervar</span><pre>isSupervar</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_isRewrite" title="isRewrite :: 判断路由方式是否是Rewrite">
            <span class="description">判断路由方式是否是Rewrite</span><pre>isRewrite</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_isSimple" title="isSimple :: 判断路由方式是否是Simple">
            <span class="description">判断路由方式是否是Simple</span><pre>isSimple</pre>
        </a>
    </li>

                                                </ul>
        </li>
        <li class="nav-header protected">» Protected
            <ul>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                </ul>
        </li>
        <li class="nav-header private">» Private
            <ul>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                </ul>
        </li>
        <li class="nav-header">
            <i class="icon-custom icon-constant"></i> Constants
            <ul>
                                <li class="constant ">
                    <a href="#constant_ROUTE_REWRITE" title="ROUTE_REWRITE :: ">
                        <span class="description"></span><pre>ROUTE_REWRITE</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_ROUTE_SIMPLE" title="ROUTE_SIMPLE :: ">
                        <span class="description"></span><pre>ROUTE_SIMPLE</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_ROUTE_SUPERVAR" title="ROUTE_SUPERVAR :: ">
                        <span class="description"></span><pre>ROUTE_SUPERVAR</pre>
                    </a>
                </li>
                            </ul>
        </li>
    </ul>


        </div>

        <div class="span8">
            <div class="element class">
                <h1>UrlManager</h1>
                <small style="display: block; text-align: right">
                                                        </small>
                <p class="short_description">UrlManager class file
URL管理类，根据路由规则生成URL</p>
                <div class="details">
                    <div class="long_description">
                        
                    </div>
                    <table class="table table-bordered">
                                                                                    <tr>
                                    <th>
                                        author
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>宋欢 <a href="mailto:trotri@yeah.net">trotri@yeah.net</a></p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        version
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>$Id: UrlManager.php 1 2013-05-18 14:58:59Z huan.song $</p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        package
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>tfc.mvc</p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        since
                                                                            </th>
                                    <td>
                                                                                    1.0
                                                                                
                                    </td>
                                </tr>
                                                                                                                                                                                                                                    </table>

                    <h3><i class="icon-custom icon-method"></i> Methods</h3>
                                                                <a id="method_getUrl"></a>
                        <div class="element clickable method public  method_getUrl" data-toggle="collapse" data-target=".method_getUrl .collapse">
                            <h2>通过路由类型，获取URL
如果指定了Action，但没指定Controller，则Controller默认为当前Controller
如果指定了Controller，但没指定Module，则Module默认为当前Module</h2>
                            <pre>getUrl(string $action = &#039;&#039;, string $controller = &#039;&#039;, string $module = &#039;&#039;, array $params = array()) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$action</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$controller</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$module</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$params</h4>
                                                <code>array</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getScriptUrl"></a>
                        <div class="element clickable method public  method_getScriptUrl" data-toggle="collapse" data-target=".method_getScriptUrl .collapse">
                            <h2>获取当前脚本的路径</h2>
                            <pre>getScriptUrl() : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getRequestUri"></a>
                        <div class="element clickable method public  method_getRequestUri" data-toggle="collapse" data-target=".method_getRequestUri .collapse">
                            <h2>获取要访问的页面名</h2>
                            <pre>getRequestUri() : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_applyQueryString"></a>
                        <div class="element clickable method public  method_applyQueryString" data-toggle="collapse" data-target=".method_applyQueryString .collapse">
                            <h2>通过路由类型，在URL后拼接该路由的QueryString参数</h2>
                            <pre>applyQueryString(string $url, string $action = &#039;&#039;, string $controller = &#039;&#039;, string $module = &#039;&#039;, array $params = array()) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$url</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$action</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$controller</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$module</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$params</h4>
                                                <code>array</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_applyRewriteQuery"></a>
                        <div class="element clickable method public  method_applyRewriteQuery" data-toggle="collapse" data-target=".method_applyRewriteQuery .collapse">
                            <h2>在URL后拼接Rewrite路由的QueryString，QueryString：/module/controller/action/k1/v1/k2/v2/k3/v3</h2>
                            <pre>applyRewriteQuery(string $url, string $action = &#039;&#039;, string $controller = &#039;&#039;, string $module = &#039;&#039;, array $params = array()) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$url</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$action</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$controller</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$module</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$params</h4>
                                                <code>array</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_applySimpleQuery"></a>
                        <div class="element clickable method public  method_applySimpleQuery" data-toggle="collapse" data-target=".method_applySimpleQuery .collapse">
                            <h2>在URL后拼接Simple路由的QueryString，QueryString：?m=module&amp;c=controller&amp;a=action&amp;k1=v1&amp;k2=v2&amp;k3=v3</h2>
                            <pre>applySimpleQuery(string $url, string $action = &#039;&#039;, string $controller = &#039;&#039;, string $module = &#039;&#039;, array $params = array()) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$url</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$action</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$controller</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$module</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$params</h4>
                                                <code>array</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_applySupervarQuery"></a>
                        <div class="element clickable method public  method_applySupervarQuery" data-toggle="collapse" data-target=".method_applySupervarQuery .collapse">
                            <h2>在URL后拼接Supervar路由的QueryString，QueryString：?r=module/controller/action&amp;k1=v1&amp;k2=v2&amp;k3=v3</h2>
                            <pre>applySupervarQuery(string $url, string $action = &#039;&#039;, string $controller = &#039;&#039;, string $module = &#039;&#039;, array $params = array()) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$url</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$action</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$controller</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$module</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$params</h4>
                                                <code>array</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_applyParams"></a>
                        <div class="element clickable method public  method_applyParams" data-toggle="collapse" data-target=".method_applyParams .collapse">
                            <h2>通过路由类型，在URL后拼接QueryString参数</h2>
                            <pre>applyParams(string $url, array $params = array()) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$url</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$params</h4>
                                                <code>array</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_applyRewriteParams"></a>
                        <div class="element clickable method public  method_applyRewriteParams" data-toggle="collapse" data-target=".method_applyRewriteParams .collapse">
                            <h2>在URL后拼接QueryString参数，QueryString：/k1/v1/k2/v2/k3/v3</h2>
                            <pre>applyRewriteParams(string $url, array $params = array()) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$url</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$params</h4>
                                                <code>array</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_applySupervarParams"></a>
                        <div class="element clickable method public  method_applySupervarParams" data-toggle="collapse" data-target=".method_applySupervarParams .collapse">
                            <h2>在URL后拼接QueryString参数，QueryString：&amp;k1=v1&amp;k2=v2&amp;k3=v3</h2>
                            <pre>applySupervarParams(string $url, array $params = array()) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$url</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$params</h4>
                                                <code>array</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_applySimpleParams"></a>
                        <div class="element clickable method public  method_applySimpleParams" data-toggle="collapse" data-target=".method_applySimpleParams .collapse">
                            <h2>在URL后拼接QueryString参数，QueryString：&amp;k1=v1&amp;k2=v2&amp;k3=v3</h2>
                            <pre>applySimpleParams(string $url, array $params = array()) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$url</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$params</h4>
                                                <code>array</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getCleanRoutes"></a>
                        <div class="element clickable method public  method_getCleanRoutes" data-toggle="collapse" data-target=".method_getCleanRoutes .collapse">
                            <h2>处理路由参数
如果指定了Action，但没指定Controller，则Controller默认为当前Controller
如果指定了Controller，但没指定Module，则Module默认为当前Module</h2>
                            <pre>getCleanRoutes(string $action = &#039;&#039;, string $controller = &#039;&#039;, string $module = &#039;&#039;) : array</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$action</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$controller</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$module</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>array</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getRouteType"></a>
                        <div class="element clickable method public  method_getRouteType" data-toggle="collapse" data-target=".method_getRouteType .collapse">
                            <h2>获取路由方式</h2>
                            <pre>getRouteType() : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setRouteType"></a>
                        <div class="element clickable method public  method_setRouteType" data-toggle="collapse" data-target=".method_setRouteType .collapse">
                            <h2>设置路由方式</h2>
                            <pre>setRouteType(string $routeType = null) : \tfc\mvc\UrlManager</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果参数不是有效的路由方式，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$routeType</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.mvc.UrlManager.html">\tfc\mvc\UrlManager</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_isSupervar"></a>
                        <div class="element clickable method public  method_isSupervar" data-toggle="collapse" data-target=".method_isSupervar .collapse">
                            <h2>判断路由方式是否是Supervar</h2>
                            <pre>isSupervar(\tfc\mvc\routes\Route $route) : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$route</h4>
                                                <code><a href="../classes/tfc.mvc.routes.Route.html">\tfc\mvc\routes\Route</a></code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_isRewrite"></a>
                        <div class="element clickable method public  method_isRewrite" data-toggle="collapse" data-target=".method_isRewrite .collapse">
                            <h2>判断路由方式是否是Rewrite</h2>
                            <pre>isRewrite(\tfc\mvc\routes\Route $route) : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$route</h4>
                                                <code><a href="../classes/tfc.mvc.routes.Route.html">\tfc\mvc\routes\Route</a></code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_isSimple"></a>
                        <div class="element clickable method public  method_isSimple" data-toggle="collapse" data-target=".method_isSimple .collapse">
                            <h2>判断路由方式是否是Simple</h2>
                            <pre>isSimple(\tfc\mvc\routes\Route $route) : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$route</h4>
                                                <code><a href="../classes/tfc.mvc.routes.Route.html">\tfc\mvc\routes\Route</a></code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                    
                                            <h3><i class="icon-custom icon-constant"></i> Constants</h3>
                                                    <a id="constant_ROUTE_REWRITE"> </a>
                            <div class="element clickable constant  constant_ROUTE_REWRITE" data-toggle="collapse" data-target=".constant_ROUTE_REWRITE .collapse">
                                <h2>ROUTE_REWRITE</h2>
                                <pre>ROUTE_REWRITE</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>伪静态类型路由，如：RouteRewrite、RouteRegex、RouteStatic</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_ROUTE_SIMPLE"> </a>
                            <div class="element clickable constant  constant_ROUTE_SIMPLE" data-toggle="collapse" data-target=".constant_ROUTE_SIMPLE .collapse">
                                <h2>ROUTE_SIMPLE</h2>
                                <pre>ROUTE_SIMPLE</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>简单路由，如：index.php?m=main&amp;c=archive&amp;a=show</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_ROUTE_SUPERVAR"> </a>
                            <div class="element clickable constant  constant_ROUTE_SUPERVAR" data-toggle="collapse" data-target=".constant_ROUTE_SUPERVAR .collapse">
                                <h2>ROUTE_SUPERVAR</h2>
                                <pre>ROUTE_SUPERVAR</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>默认路由，如：index.php?r=main/archive/show</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                            
                                                                <h3><i class="icon-custom icon-property"></i> Properties</h3>
                                                    <a id="property__routeType"> </a>
                            <div class="element clickable property  protected property__routeType" data-toggle="collapse" data-target=".property__routeType .collapse">
                                <h2>当前的匹配成功的路由类型</h2>
                                <pre>_routeType : string|null</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>当前的匹配成功的路由类型</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>string|null</code>
                                                                            </div>
                                </div>
                            </div>
                                                            </div>
            </div>
            <a id="\tfc\mvc\UrlManager"></a>
            <ul class="breadcrumb">
                <li><a href="../index.html"><i class="icon-custom icon-class"></i></a></li>
                    
    
    <li><span class="divider">\</span><a href="../namespaces/tfc.mvc.html">mvc</a></li>

                <li class="active"><span class="divider">\</span><a href="../classes/tfc.mvc.UrlManager.html">UrlManager</a></li>
            </ul>
        </div>
    </div>

    </div>

        <footer class="span12">
            Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by
            <a href="http://glyphicons.com/">Glyphicons</a>.<br/>
            Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and<br/>
            generated on Sat, 27 Dec 2014 06:16:38 +0000.<br/>
    </footer>
    </body>
</html>
